#ifndef CRYPTO_H
#define CRYPTO_H

#include <QCryptographicHash>
#include "AES/qaesencryption.h"
#include <QDebug>

class Crypto
{
public:
    Crypto();

public:
    QString plain2Cipher(QString text);             // 明文转密文
    QString cipher2Plain(QString text);             // 密文转明文

    QAESEncryption::Aes      _aes = QAESEncryption::AES_128;
    QAESEncryption::Mode     _mode = QAESEncryption::ECB;
    QAESEncryption::Padding  _padding = QAESEncryption::ZERO;
    QString                  _key = "bk12344312";
};

#endif // CRYPTO_H
